(function () {
    angular.module('app')
        .component('xxOrderProcessing',{
            templateUrl:'/app/drug-manager/order-processing/order-processing.html',
            controller:ctrl
        });

    function ctrl($scope,$state,userService,mockHttp,OrderProcessingFactory) {
        $scope.orderList = mockHttp.orderList;
        $scope.username = userService.user['username'];

        $scope.orderInfo = function (orderId) {
            $state.go('drug-manager.order-info',{orderId:orderId});
        };
        $scope.login = function () {
            $state.go('login');
        };
        $scope.register = function () {
            $state.go('register')
        };
    }
})();